﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    /// <summary>
    /// 材料实体类
    /// </summary>
    public class Material : BaseEntity
    {

        [Column(TypeName = "nvarchar(16)")]
        public string Title { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [Column(TypeName = "nvarchar(8)")]
        public string Unit { get; set; }

        /// <summary>
        /// 单价：等于五种价格之和
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 主材成本
        /// </summary>
        public decimal PriceMain { get; set; }

        /// <summary>
        /// 辅材成本
        /// </summary>
        public decimal PriceAssistant { get; set; }

        /// <summary>
        /// 机械成本
        /// </summary>
        public decimal PriceMachine { get; set; }

        /// <summary>
        /// 人工成本
        /// </summary>
        public decimal PriceArtificial { get; set; }

        /// <summary>
        /// 损耗成本
        /// </summary>
        public decimal PriceLoss { get; set; }


        [Column(TypeName = "nvarchar(64)")]
        public string? Remark { get; set; }

        /// <summary>
        /// 工程分类id
        /// </summary>
        public string ClassificationId { get; set; }


        public DateTime CreateTime { get; set; }

        public bool IsDelete { get; set; }

        public DateTime? DeleteTime { get; set; }

    }
}
